home *** CD-ROM | disk | FTP | other *** search
- RIPMOD2a ("THE COMPLETE RIP PACKAGE") file1
- ``Midiman`` WWIVnet #330 AT 856
- 0Sunday, October 3, 1993 9:45 pm 3-=1[5JST1]3=-0
- 0R: net33: @9 (via @22) [07:51 10/08/93]
- 0R: net33: @22 (via @7) [07:42 10/08/93]
- 0R: net33: @7 (via @8) [07:16 10/08/93]
- 0R: net33: @8 (via @1) [07:23 10/08/93]
- 0R: net33: @15 [06:06 10/08/93]
- 0R: net33: @4062 (via @4064) [06:27 10/06/93]
- 0R: net33: @4064 (via @1040) [03:36 10/06/93]
- 0R: net33: @1040 (via @2050) [12:04 10/05/93]
- 0R: net34: @2050 [09:48 10/05/93]
- 0R: net34: @2050 (via @1040) [16:16 10/04/93]
- 0R: net33: @1040 (via @856) [16:12 10/04/93]
- 0R: net33: @856 [22:06 10/03/93]
- ┌────────────────────────────────────────────────────────────────────────────┐
- │ Mod Name: RIPMOD2a Mod Author: MidiMan #1@850 │
- │ Difficulty: Normal Date: 09-17-1993 │
- │ WWIV Version: 4.22 Update 09-26-1993 │
- │ Description: Adds RIPscrip to WWIV │
- │ FILE # 1 │
- └────────────────────────────────────────────────────────────────────────────┘
- =============================================================================
- [#1] [LOAD] BBSUTL.C search and add the /* modded code */
- =============================================================================
- inside of char *mmkey(int dl)
-
- ch=upcase(ch);
- if (!rip) /* RIP MOD */
- outchr(ch);
- if (ch==13)
-
- go down a little further, to "int set_language_1(int n)"
- (thanks Trail Rider)
-
- Look for:
-
- read_in_file("MENUSANS.MSG",menus1,sizeof(menus1)/sizeof(menus1[0]));
- read_in_file("MENUS40.MSG",menus2,sizeof(menus2)/sizeof(menus2[0]));
- read_in_file("MENUS.RIP",menus3,sizeof(menus3)/sizeof(menus3[0])); /* RipMod */
-
- return(0);
- }
-
- Save BBSUTL.C
- =========================================================================
- [#2] [LOAD] VARS.H search and add the /* modded code */
- =========================================================================
- Look for:
-
- __EXTRN__ messagerec helps[50], menus[30],menus1[30],menus2[30];
-
- And change it to....
-
- __EXTRN__ messagerec helps[50], menus[30],menus1[30],menus2[30],menus3[30];
-
- Also, under __EXTRN__ int ...etc.. add rip, ripflg, and mm :
-
- num_sec, num_subs, num_sys_list, oklevel, okmacro, okskey,
- ok_modem_stuff, oldx, oldy, ooneuser, outcom,
- userfile, usernum, useron, use_workspace, using_modem,
- wfc, x_only, rip,ripflg,mm; /* added rip,ripflg,mm */
-
- Save VARS.H
- =============================================================================
- [#3] [LOAD] MSGBASE1.C search and add the /* modded code */
- =============================================================================
- Search for void printmenu.
-
- void printmenu(int i)
- {
- char s[81],s1[81];
- int next;
-
- next=0;
- if (rip) { /* Rip Mod */
- sprintf(s1,"MENU%u.RIP", i); /* Rip Mod */
- sprintf(s,"%s%s",languagedir,s1); /* Rip Mod */
- ripflg=1; /* Rip Mod */
- if (exist(s)) { /* Rip Mod */
- printfile(s1); /* Rip Mod */
- return; /* Rip Mod */
- } /* Rip Mod */
- /* Rip Mod */
- if (menus3[i].stored_as) { /* Rip Mod */
- sprintf(s,"%sMENUS.RIP",languagedir); /* Rip Mod */
- ripflg=1; /* Turn on Rip Flag */
- read_message1(&menus3[i],0,0,&next,s); /* Rip Mod */
- ripflg=0; /* Turn off Rip Flag */
- } /* Rip Mod */
- else { /* Rip Mod */
- if ((okansi()) && (menus1[i].stored_as)) { /* Rip Mod */
- sprintf(s,"%sMENUSANS.MSG",languagedir); /* Rip Mod */
- read_message1(&menus1[i],0,0,&next,s); /* Rip Mod */
- } else { /* Rip Mod */
- sprintf(s,"%sMENUS.MSG",languagedir); /* Rip Mod */
- if (menus[i].stored_as) /* Rip Mod */
- read_message1(&menus[i],0,0,&next,s); /* Rip Mod */
- } /* Rip Mod */
- } /* Rip Mod */
- ripflg=0; /* RIP Mod */
- return; /* Rip Mod */
- } /* Rip Mod */
-
- if ((thisuser.sysstatus & (sysstatus_color | sysstatus_ansi))
- == (sysstatus_color | sysstatus_ansi)) {
- sprintf(s1,"MENU%u.ANS", i);
- sprintf(s,"%s%s",languagedir,s1);
- if (exist(s)) {
- printfile(s1);
- return;
- }
- }
-
- Save MSGBASE1.C
- =============================================================================
- [#4] [LOAD] SHRINK.C search and add the /* modded code */
- =============================================================================
-
- add the following line in * int restore_data(char *s)
- READ(sysop_alert);
- READ(do_event);
- READ(rip); /* Rip Mod. */
-
- if (stat) {
- READ(andwith);
-
- We must also add this to the Write Statement. Search for...
- void save_state(char *s, int state,int ctc)
-
- Add the folowing line.......
-
- WRITE(do_event);
- WRITE(rip); /* Mod Add */
-
- WRITE(andwith);
- WRITE(usernum);
-
- Save SHRINK.C
- =============================================================================
- [#5] [LOAD] BBS.C search and add the /* modded code */
- =============================================================================
-
- void mainmenu(void)
- {
- char *s, s1[81],s2[81],ch;
- int i;
- long l;
- double d;
-
- ...further down...replace this if statement for expert/novice menus
-
- if ((sysstatus_expert & thisuser.sysstatus)==0) { /* RIP MOD */
- if (!mm) { /* RIP MOD */
- printmenu(0); /* RIP MOD */
- ripcut(); /* RIP MOD */
- lines_listed=0; /* RIP MOD */
- } else /* RIP MOD */
- mm=0; /* RIP MOD */
- } /* RIP MOD */
-
- further down.....
-
- nl();
- tleft(1);
- if (!rip) /* RIP MOD */
- npr("T - %s\r\n",ctim(nsl()));
- s1[0]=0;
-
- Further down....
-
- case '>':
- case '+':
- if ((cursub<num_subs-1) && (usub[cursub+1].subnum>=0))
- ++cursub;
- else
- cursub=0;
- mm=1; /* RIP MOD */
- break;
- case '<':
- case '-':
- if (cursub>0)
- --cursub;
- else {
- while ((usub[cursub+1].subnum>=0) && (cursub<num_subs-1))
- ++cursub;
- }
- mm=1; /* RIP MOD */
- break;
-
- further down look for and * replace * this whole case.
-
- case 'I':
- nl();
- npr("%s (%s)\r\n",wwiv_version, wwiv_date);
- nl();
- printfile("LOGON");
- rippause(); /* RIP MOD */
- printfile("SYSTEM");
- rippause(); /* RIP MOD */
- break;
-
- NOTE: after each case in mainmenu & dlmainmenu add a RIPWINDOW() or RIPBIG()
-
- for example:
- case 'A':
- ripwindow();
- helpl=19;
- write_automessage();
- break;
-
- search for and * replace * whole case in void mainmenu(void)
-
- case 'O':
- helpl=12;
- ripoff();
- if (!rip) {
- nl();
- nl();
- prt(5,get_string(28));
- if (yn()) {
- outchr(12);
- outstr(get_string(29));
- pl(ctim(timer()-timeon));
- printfile("LOGOFF");
- hangup=1;
- }
- }
- break;
-
- *NOTE* do the same for CASE 'O" in the dlmainmenu logoff command.
-
- Change the case '?': in the void mainmenu to this....
-
- case '?': /* RIP MOD */
- if ((sysstatus_expert & thisuser.sysstatus)==0) /* RIP MOD */
- nl(); /* RIP MOD */
- else /* RIP MOD */
- printmenu(0); /* RIP MOD */
- break; /* RIP MOD */
-
- In the void dlmainmenu(), alter/add the following
-
- if ((sysstatus_expert & thisuser.sysstatus)==0) { /* RIP MOD */
- if (!mm) { /* RIP MOD */
- printmenu(3); /* RIP MOD */
- ripcut(); /* RIP MOD */
- lines_listed=0; /* RIP MOD */
- } else /* RIP MOD */
- mm=0; /* RIP MOD */
- } /* RIP MOD */
-
- further down....
-
- case '>':
- case '+':
- if ((curdir<num_dirs-1) && (udir[curdir+1].subnum>=0))
- ++curdir;
- else
- curdir=0;
- mm=1; /* RIP MOD */
- break;
- case '<':
- case '-':
- if (curdir>0)
- --curdir;
- else {
- while ((udir[curdir+1].subnum>=0) && (curdir<num_dirs-1))
- ++curdir;
- }
- mm=1; /* RIP MOD */
- break;
-
- Replace the case '?' further on down in DLMAINMENU()
-
- case '?': /* RIP MOD */
- if ((sysstatus_expert & thisuser.sysstatus)==0) /* RIP MOD */
- nl(); /* RIP MOD */
- else /* RIP MOD */
- printmenu(0); /* Rip Mod */
- break; /* RIP MOD */
- =============================================================================
- [#6] [LOAD] MSGBASE.C search and add the /* modded code */
- =============================================================================
- search for:
-
- int printfile(char *fn)
- ...etc...further on down.....
- strcpy(s,syscfg.gfilesdir);
- m.stored_as=0L;
- m.storage_type=255;
- strcat(s,fn);
- if (strstr(s,".RIP")) /* if a file is */
- ripflg=1; /* to be loaded, */
- if (strchr(s,'.')==NULL) { /* and has an ext */
- if (rip) { /* of .RIP then */
- strcpy(s1,s); /* it disables */
- strcat(s1,".RIP"); /* [PAUSE] temporar*/
- if (exist(s1)) { /* ily. */
- strcat(s,".RIP"); /* */
- ripflg=1; /* R.I.P MOD */
- } /* BY */
- } /* MIDIMAN */
- } /* */
- if (strchr(s,'.')==NULL) {
- if (thisuser.sysstatus & sysstatus_ansi) {
- if (thisuser.sysstatus & sysstatus_color) {
- strcpy(s1,s);
-
- go down further at the end in printfile() and look for
-
- next=0;
- read_message1(&m,0,0,&next,s);
- ripflg=0; /* RIP MOD, turns on pause again */
- return(next);
- }
-
- save msgbase.c
- =============================================================================
- [#7] [LOAD] COM.C search and add the /* modded code */
- =============================================================================
- look for:
- void pausescr(void)
- {
- int i,i1;
- char *ss;
-
- if (ripflg) { /* RIP MOD */
- lines_listed=0; /* RIP MOD resets lines to 0 */
- return; /* RIP MOD */
- } /* RIP MOD */
-
- if (x_only)
- return;
-
- * REPLACE this void *
- int yn(void)
- {
- char ch=0;
-
- ansic(1);
- while ((!hangup) &&
- ((ch = upcase(getkey())) != *str_yes) &&
- (ch != *str_no) &&
- (ch != 13))
- if (!rip) {
- if (ch==*str_yes)
- print_yn(2);
- else
- print_yn(3);
- }
- return(ch == *str_yes);
- }
-
- save com.c
- =============================================================================
- [#8] [LOAD] LILO.C search and add the /* modded code */
- =============================================================================
- look for:
- void getuser() (at the beginning)
-
- okmacro=0;
- actsl=syscfg.newusersl;
- if ((!net_only) && (incom)) {
- ripcheck(); /* RIP MOD */
- sprintf(s,"%sWELCOME.ANS",languagedir);
- if (exist(s)) {
- nl();
-
- Further on down.....
- ans=check_ansi();
- #endif
- if (rip) { /* RIP MOD */
- ripflg=1; /* RIP MOD */
- printfile ("welcome.rip"); /* RIP MOD */
- rippause(); /* SEE NOTE */
- } else /* RIP MOD */
- if (ans>0)
- printfile("welcome.ans");
- else if (ans==0)
-
- further down look for this:
-
- printfile("welcome.msg");
- }
- if (curatr!=7)
- reset_colors();
- ripwindow(); /* RIP MOD */
- do {
- nl();
- if (net_only) {
-
- * NOTE * I put RIPPAUSE() in there because my Welcome RIP has a button that
- is hit to continue. Take this out if you don't need a pause there. But the
- screens go by so quick, that you will need this!
-
- look for and add the following in lilo.c logon(void)
-
- if (incom && live_user) {
- i=printfile("LOGON");
- rippause(); /* RIP MOD, so you can put a nifty pause button */
- if ((!i) && (!(thisuser.sysstatus & sysstatus_pause_on_page)))
- pausescr();
- }
- ripwindow(); /* RIP MOD, makes tty window */
- strcpy(xdate,date());
- if (strcmp(xdate,thisuser.laston)==0)
-
- Further down in VOID LOGON() is :
-
- prt(3,get_string(378));
- nl();
- nl();
- }
- save_status();
- create_chain_file("CHAIN.TXT");
-
- if (rip) { /* RIP MOD */
- sysoplog("User is using RIP! by MIDIMAN"); /* RIP MOD */
- if ((sysstatus_expert & thisuser.sysstatus)==0)/* RIP MOD */
- nl(); /* RIP MOD */
- else /* RIP MOD */
- thisuser.sysstatus ^= sysstatus_expert; /* RIP MOD */
- } /* RIP MOD */
- } /* existing, its the last } in void LOGON */
-
- SAVE LILO.C
-
- ( NEED NEXT FILE - RIPMOD2a )
-
-
-